package book.zone.auth;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: ndemeshchenko
 * Date: May 12, 2010
 * Time: 4:10:34 PM
 */
public class User implements Serializable{
    private String firstName;
    private String lastName;
    private String email;
    private String city;
    private String passwd; 

    public User(){}

    public User(String firstName, String lastName, String email, String city, String passwd){
        this.firstName = firstName;
        this.lastName = lastName;
        this.email = email;
        this.city = city;
        this.passwd = passwd;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getPasswd() {
        return passwd;
    }

    public void getPasswd(String passwd) {
        this.passwd = passwd;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        if (this.firstName != null){
            sb.append("firstName=" +this.firstName + ", ");
        }
        if(this.lastName != null){
            sb.append("lastName=" +this.lastName + ", ");
        }
        if(this.email != null){
            sb.append("email=" +this.email + ", ");
        }
        if(this.city != null){
            sb.append("city=" +this.city + ";");
        }
        return sb.toString();
    }
}
